<template>
	<view class="root">
		<view class="header">
			<view class="text">请给上门回收师傅打分</view>
			<view class="box">
				<uni-rate class="score-component" :touchable="false" :value="5" @change="onChange" size="40"/>
				<view class="score-text">
					0分
				</view>
			</view>
		</view>
		<view class="body">
			<view class="text">评价</view>
			<view class="comment-list">
				<view class="comment-item">
					<view class="text">
						服务态度：
					</view>
					<view class="checkbox-container">
						<checkbox-group class="checkbox-group">
							<label class="checkbox-item">
								<checkbox value="cb" checked="true" />
								<text>好</text>
							</label>
							<label  class="checkbox-item">
								<checkbox value="cb" />
								<text>中</text>
							</label>
							<label  class="checkbox-item">
								<checkbox value="cb" />
								<text>差</text>
							</label>
						</checkbox-group>
					</view>
				</view>
				<view class="comment-item">
					<view class="text">
						回收效率：
					</view>
					<view class="checkbox-container">
						<checkbox-group class="checkbox-group">
							<label class="checkbox-item">
								<checkbox value="cb" checked="true" />
								<text>好</text>
							</label>
							<label class="checkbox-item">
								<checkbox value="cb" />
								<text>中</text>
							</label>
							<label class="checkbox-item">
								<checkbox value="cb" />
								<text>差</text>
							</label>
						</checkbox-group>
					</view>
				</view>
				<view class="comment-item">
					<view class="text">
						上门准时度：
					</view>
					<view class="checkbox-container">
						<checkbox-group class="checkbox-group">
							<label class="checkbox-item">
								<checkbox value="cb" checked="true" />
								<text>好</text>
							</label>
							<label class="checkbox-item">
								<checkbox value="cb" />
								<text>中</text>
							</label>
							<label class="checkbox-item">
								<checkbox value="cb" />
								<text>差</text>
							</label>
						</checkbox-group>
					</view>
				</view>
			</view>
		</view>
		<view class="bottom">
			<button class="submit-button">提交</button>
		</view>
	</view>
</template>

<script setup>

</script>

<style lang="scss" scoped>

	.root {
		display: flex;
		flex-direction: column;
		gap: 30rpx;
		padding-left: 40rpx;
		padding-right: 40rpx;
		.header {
			display: flex;
			flex-direction: column;
			.text {
				font-size: 36rpx;
				line-height: 150rpx;
			}
			.box {
				padding-left: 30rpx;
				display: flex;
				flex-direction: row;
				gap: 40rpx;
				height: 100rpx;
				align-items: center;
				font-size: 36rpx;
				.score-component {
					
				}
				.score-text {
					
				}
			}
		}
		
		.body {
			display: flex;
			flex-direction: column;
			&>.text {
				font-size: 38rpx;
			}
			.comment-list {
				display: flex;
				flex-direction: column;
				.comment-item {
					display: flex;
					flex-direction: row;
					align-items: center;
					gap: 20rpx;
					.text {
						width: 200rpx;
						text-align: right;
						line-height: 100rpx;
					}
					.checkbox-container {
						display: flex;
						flex-direction: row;
						
						.checkbox-group {
							display: grid;
							grid-template-columns: repeat(3, 120rpx);
						}
					}
				}
			}
		}
		
		.bottom {
			padding-top: 150rpx;
			.submit-button {
				width: 90%;
				background-color: #2ec076;
				color: white;
				font-weight: 700;
			}
		}
		
	}
	
	
</style>
